﻿package com.jxl.dnd.classes
{
	import com.jxl.dnd.abilities.AbilityIncreases;
	
	
	public class Barbarian extends CharacterClass
	{
		public function Barbarian(intelligenceModifierAmount:Number):void
		{
			private var className_str:Number 		= "Barbarian";
			private var level:Number 		 		= 1;
			private var baseSaveLow:Number 	 		= 0;
			private var baseSaveHigh:Number    		= 2;
			private var baseAttackBonus_array:Array = [1];
			
			private var xp:Number 					      = 0;
			private var classSkillMaxRanks:Number 	      = 4;
			private var crossClassSkillMaxRanks:Number    = 2;
			private var feats_array:Array 				  = [];
			private var abilityIncreases:AbilityIncreases = new AbilityIncreases();
			
			private var description_str:String 			  = "";
			
			private var abilities_array:Array = ["Strength", "Dexterity", "Wisdom", "Constitution"];
			private var alignment_str:String = "Any nonlawful";
			hitDie_str = "d12";
			fortSave = 2;
			refSave = 0;
			willSave = 0;
			special_array = ["Rage 1/day", "fast movement"];
			spellsPerDay = 0;
			spellsPerDay_array = [];
			classSkillsStarting = 0;
			classSkillsPerLevel = 0;
			classSkills_array = ["Climb (Str)", 
								 "Craft (Int)", 
								 "Handle Animal (Cha)", 
								 "Intimidate (Cha)", 
								 "Intuit Direction (Wis)", 
								 "Jump (Str)", 
								 "Listen (Wis)", 
								 "Ride (Dex)",
								 "Swim (Str)", 
								 "Wilderness Lore (Wis)"];
			armorProficiency_array = ["light armor", "medium armor", "shields"];
			weaponProficiency_array = ["all simple weapons", "all martial weapons"];
			spells_array = [];
			uniqueAbilities_array = [{name: "Barbarian Rage", level: 1},
									  {name: "Fast Movement", level: 1},
									  {name: "Uncanny Dodge", level: 2},
									  {name: "Damage Reduction", level: 11},
									  {name: "Illiteracy", level: 1}];
		
			classSkillsStarting = ( 4 + intelligenceModifierAmount) * 4;
			classSkillsPerLevel = 4 + intelligenceModifierAmount;
			
			// because he is illiterate
			literacy = false;
		}
		
		/*
		getSpeed = function(){
			// if not wearing heavy armore or carrying a heavy load
			return this.speed + 10;
		};
		*/
	}
}